
<header class="newsheader">Register</header>
<section class="newssection">
<?
if(!isset($_GET['reg'])) {
	$_GET['reg'] = 'reg';
}
if($_GET['reg'] == 'bad_un'){
	echo "I'm sorry but the username you specified has already been taken. Please pick another one.<br>";
}
if($_GET['reg'] == 'bad_em'){
	echo "I'm sorry but the email you specified has already been taken. Please pick another one.<br>";
}
if($_GET['reg'] == 'bad_unem'){
	echo "I'm sorry but the username and email you specified has already been taken. Please pick another one.<br>";
}
if($_GET['reg'] == 'bad_pw'){
	echo "Passwords do not match, please try again.<br>";
}
if($_GET['reg'] == 'success'){
	echo "Congratulations, you can now login!<br>";
} else {
?>
<form name="login" method="post" action="functions/register.php">
<table border="0" width="225" align="center">
    <tr>
        <td width="219">
            <table border="0" width="282" align="center">

                <tr>
                    <td width="116"><span style="font-size:10pt;">Username:</span></td>
                    <td width="156"><input type="text" name="username"></td>
                </tr>
                   	<tr>
                        <td width="116"><span style="font-size:10pt;">Email:</span></td>
                        <td width="156"><input type="text" name="email" maxlength="100"></td>
                    </tr>
                <tr>
                    <td width="116"><span style="font-size:10pt;">Password:</span></td>
                    <td width="156"><input type="password" name="password"></td>
                </tr>
                <tr>
                    <td width="116"><span style="font-size:10pt;">Repeat password:</span></td>
                    <td width="156"><input type="password" name="repeat"></td>
                </tr>
                <tr>
                    <td width="116">&nbsp;</td>
                        <td width="156">
                            <p align="right"><input type="submit" name="submit" value="Submit"></p>
                        </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
</form>
<? }?></section>
<footer class="newsfooter"></footer>
